package ar.edu.utn.frba.tacs.warnes.pieza;

public class PiezaVendidaState extends PiezaState  {

	@Override
	public boolean esVendida() {
		return true;
	}

	private static PiezaVendidaState instance;
	 
	/**
	 * Devuelve la instancia de PiezaVendidaState.
	 * Es un <b>SINGLETON</b>
	 * @return PiezaVendidaState
	 */
    public static PiezaVendidaState getInstance() {
    	if (instance == null)
    		setInstance(new PiezaVendidaState());
        return instance;
    }

	public static void setInstance(PiezaVendidaState instance) {
		PiezaVendidaState.instance = instance;
	}
}
